package service

import (
	"fmt"
	"sys-admin/app/dao"
)

var LogService = new(logService)

type logService struct{}

func (u *logService) Add(log *dao.Log) {
	result := dao.DB.Create(&log)
	fmt.Printf("影响的行数：%d", result.RowsAffected)
	//role.ID, result.Error
}
